import Vue from 'vue'
/**
 * 引入全局filter
 */
const component = require.context(
	'./',
	false,
	/.+\.(js)$/
)
component.keys().forEach(fileName => {
	const name = fileName.split("/").pop().replace(".js", "");
	if (name === "index") return;
	Vue.filter(name, component(fileName).default);
})
